"use strict"

/**
 * 青海省自治区采购网爬虫
 *  
 */

var Base = require("./base");
var qh_spider = new Base();
qh_spider.name = "青海省采购网";

qh_spider.getPageUrl = function(pg) {
    return "http://www.ccgp-qinghai.gov.cn/jilin/zbxxController.form?declarationType=&pageNo=" + pg + "&type=1";
};

qh_spider.getItems = function($) {
    var items = [];
    $(".news_list a").each(function(index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = e.attr("href");
        item.source = qh_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = qh_spider;